package test_2_26;

import java.util.Scanner;

public class one {
    public static void main(String []args)
    {
        Scanner sc=new Scanner(System.in);
        String s=sc.next();
        System.out.println(s);
        int count=0;
        if(s.charAt(0)>='A' && s.charAt(0)<='Z')
            {
               for(int i=0;i<s.length();i++)
               {
                   if(s.charAt(i)>='A' && s.charAt(i)<='Z')
                   {
                       count++;
                       System.out.print(s.charAt(i));
                   }
               }
                System.out.println("这个字符串有"+count+"大写字符");
            }
        else {
            System.out.println("首字符是小写");
        }

    }
}
